<!DOCTYPE html>
<html>
<head>
  <meta charset="utf-8"/>
  <title>校园跑腿</title>
  <meta name="description" content="校园跑腿"/>
  <meta name="keywords" content="校园跑腿"/>
  <meta name="viewport" content="initial-scale=1.0, maximum-scale=1.0, user-scalable=no"/>
  <link rel="stylesheet" href="/css/amazeui.min.css"/>
  <link rel="stylesheet" href="/css/style.css"/>
  <script type="text/javascript" src="/js/jquery.min.js"></script>
  <script type="text/javascript" src="/js/amazeui.min.js"></script>
  <script type="text/javascript" src="/js/application.js"></script>
</head>
<body>
<header data-am-widget="header" class="am-header am-header-default header">
  <div class="am-header-left am-header-nav">
    <a href="/user/mypage" class="">
      <i class="am-header-icon am-icon-angle-left"></i>
    </a>
  </div>
  <h1 class="am-header-title"><a href="#title-link" class="" style="color: #333;">收货地址</a></h1>
  <div class="am-header-right am-header-nav">
    <a href="/user/addaddress" class="blue" style="color: #79bbff">添加</a>
  </div>
</header>
<!--<a href="javascript:history.go(-1)">-->

<div th:each="address:${addressList}">
  <ul class="address-list">
    <li th:class="${address.status == 1 ? 'curr' : ''}">
      <p th:text="${address.name}"></p>
      <p th:text="${address.phonenumber}"></p>
      <p class="order-add1">收货地址：<span th:text="${address.address}"/></p>
      <hr>
      <div class="address-cz">
        <a style="width: auto" th:href="@{/user/defaultaddress(serialnumber=${address.serialnumber},userid=${address.userid})}"><i th:class="${address.status == 1 ? 'am-icon-check-circle-o' : 'am-icon-genderless'}"></i>设为默认</a>
        <a th:href="@{/user/editaddress(serialnumber=${address.serialnumber})}"><i class="am-icon-gear"></i>&nbsp;编辑</a>
        <a th:href="@{/user/deleteaddress(serialnumber=${address.serialnumber})}"><i class="am-icon-times"></i>删除</a>
      </div>
    </li>
  </ul>
</div>
</body>
</html>